package com.example.userdome.service.impl;

import com.example.userdome.mapper.ArticleMapper;
import com.example.userdome.pojo.Article;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ArticleServiceImpl {
    @Resource
    private ArticleMapper articleMapper;
    public List<Article> getArticlesWithLikeCount(){
        return articleMapper.selectArticleWithLikeCount();
    }
}
